package gagak.framework.web.handler;

import com.g5.framework.web.context.MvcApplicationContext;
import com.g5.framework.web.context.MvcContextApplicationHolder;

/*
 * @program: ce
 * @description: handlermapping 抽象实现
 * @author: houhong
 * @create: 2022-11-23 20:42
 */
public abstract class AbstractHandlerMapping implements HandlerMapping {

    protected volatile MvcApplicationContext context = null;

    /*
     * 这里去初始化映射处理器
     */
    protected void initHandlerMethods() {
        //获取到容器，
        context = MvcContextApplicationHolder.getMvcApplicationContext();

    }




    public MvcApplicationContext getContext() {
        return context;
    }

    public void setContext(MvcApplicationContext context) {
        this.context = context;
    }
}